

#import "PFBaseTableViewCell.h"


#define TABLE_VIEW_CELL_LINE_COLOR RGBCOLOR(200, 199, 204)

@implementation PFBaseTableViewCell


- (id)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
    }
    return self;
}

- (void)layoutSubviews{
    [super layoutSubviews];
    [self setNeedsDisplay];
}

- (void)drawRect:(CGRect)rect {
    
    CGContextRef context = UIGraphicsGetCurrentContext();
    float lineWidth = 0.5;
    
    //线的颜色
    [TABLE_VIEW_CELL_LINE_COLOR setFill];
    
    //画底部分隔的线
    CGRect rcline = CGRectMake(0, rect.size.height-lineWidth, rect.size.width, lineWidth);
    CGContextAddRect(context, rcline);
    CGContextDrawPath(context, kCGPathFill);

}


@end






